#导入数据
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split


def datasetDome():
    #载入数据集
    iris=load_iris()
    print(iris)
    #查看数据集
    print(iris["DESCR"])
    print("特征值名称：\n",iris.feature_names)
    print("样本大小：\n",iris.data.shape)
    x_train,x_test,y_train,y_test=train_test_split(iris.data,iris.target,test_size=0.2,random_state=22)
    print("训练集的特征值:\n",x_train,x_train.shape)
    return None

datasetDome()